<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>common_util: src/common_util/verutil.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">common_util<span id="projectnumber">&#160;1.1.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.8 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function() { init_codefold(0); });
/* @license-end */
</script>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_2961cad218251a7c35c6867350b80887.html">common_util</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle"><div class="title">verutil.h</div></div>
</div><!--header-->
<div class="contents">
<a href="verutil_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span> </div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno">   19</span><span class="preprocessor">#pragma once</span></div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno">   20</span> </div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno">   21</span><span class="preprocessor">#include &lt;string&gt;</span></div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno">   22</span> </div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno">   23</span><span class="keyword">namespace </span>cutl</div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno">   24</span>{</div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno">   25</span> </div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"><a class="line" href="verutil_8h.html#a89836cc8073ba7cbb7438ec894fee5f2">   32</a></span>    <span class="keywordtype">bool</span> <a class="code hl_function" href="verutil_8h.html#a89836cc8073ba7cbb7438ec894fee5f2">is_version</a>(<span class="keyword">const</span> std::string &amp;text);</div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"><a class="line" href="verutil_8h.html#a99aab6b25e43d31dfaef49a86d8ac39a">   39</a></span>    std::string <a class="code hl_function" href="verutil_8h.html#a99aab6b25e43d31dfaef49a86d8ac39a">get_version</a>(<span class="keyword">const</span> std::string &amp;text);</div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"><a class="line" href="verutil_8h.html#a4dd7764301751d990dc86c906c93d5d5">   47</a></span>    <span class="keywordtype">int</span> <a class="code hl_function" href="verutil_8h.html#a4dd7764301751d990dc86c906c93d5d5">compare_version</a>(<span class="keyword">const</span> std::string &amp;v1, <span class="keyword">const</span> std::string &amp;v2);</div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno">   48</span> </div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno">   49</span>} <span class="comment">// namespace cutl</span></div>
<div class="ttc" id="averutil_8h_html_a4dd7764301751d990dc86c906c93d5d5"><div class="ttname"><a href="verutil_8h.html#a4dd7764301751d990dc86c906c93d5d5">cutl::compare_version</a></div><div class="ttdeci">int compare_version(const std::string &amp;v1, const std::string &amp;v2)</div><div class="ttdoc">Compare two version strings.</div></div>
<div class="ttc" id="averutil_8h_html_a89836cc8073ba7cbb7438ec894fee5f2"><div class="ttname"><a href="verutil_8h.html#a89836cc8073ba7cbb7438ec894fee5f2">cutl::is_version</a></div><div class="ttdeci">bool is_version(const std::string &amp;text)</div><div class="ttdoc">Check if a string is a valid version.</div></div>
<div class="ttc" id="averutil_8h_html_a99aab6b25e43d31dfaef49a86d8ac39a"><div class="ttname"><a href="verutil_8h.html#a99aab6b25e43d31dfaef49a86d8ac39a">cutl::get_version</a></div><div class="ttdeci">std::string get_version(const std::string &amp;text)</div><div class="ttdoc">Parse a version string from a text.</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8
</small></address>
</body>
</html>
